/*------------------------------------------------------*/
/*                                                      */
/* Copyright (C)	sky-mobi.com                        */
/* All rights reserved                                  */
/*                                                      */
/* Author   tristan.yang                                */
/*                                                      */
/* History  2011-9-06 created                           */
/*                                                      */
/*------------------------------------------------------*/

#ifndef __CONVERT_SINK_H__
#define __CONVERT_SINK_H__

#include "cvbase.h"

class CSessionMgrSink
{
public:
	virtual void OnEndStream(RtResult aRt, const st_StreamInfo& refInfo) = 0;
	virtual void OnKillSelf(RtResult aRt) = 0;
	virtual ~CSessionMgrSink() {}
};

class CChannel;
class CChannelSink
{
public:
	virtual RtResult OnDisConnect(CRtAutoPtr<CChannel> pchannel) = 0;
	virtual RtResult OnChannelRequest(DWORD type, const st_StreamInfo& refInfo,	CRtAutoPtr<CChannel> pchannel) = 0;
	virtual RtResult OnStreamInfoReq(const st_StreamInfo& refInfo, AvObjsMap& refObj) = 0;
	virtual ~CChannelSink() {}
};


#endif//__CONVERT_SINK_H__
